package com.example.kaogong.sys.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.kaogong.common.utils.RespBean;
import com.example.kaogong.sys.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.kaogong.sys.pojo.dto.PostCommentDto;
import com.example.kaogong.sys.pojo.dto.PostDto;
import com.example.kaogong.sys.pojo.vo.PostCommentVo;
import com.example.kaogong.sys.pojo.vo.PostVo;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author    
 * @since 2022-03-26
 */
public interface ICommentService extends IService<Comment> {

    RespBean addPostComment(PostCommentDto postCommentDto, String name);

    RespBean<Page<PostCommentVo>> getPostComment(Long current, Long size, Integer postId, Integer cid);

    RespBean shieldComment(Integer commentId);

    RespBean deleteComment(Integer commentId, String name);

    RespBean likeComment(Integer commentId, String name);
}
